home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Toolbox / ProgressBars 1.0 / Sources / BareBones.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-17  |  816 b   |  67 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        BareBones.c
  3.     
  4.     Contains:    The main routine
  5.     
  6.     Written by:    Chris White, Developer Technical Support
  7.     
  8.     Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9.     
  10.     Change History (most recent first):
  11.     
  12.             1/22/96            CW        First release
  13.  
  14. */
  15.  
  16.  
  17. #pragma segment Core
  18.  
  19.  
  20. #define __MAIN__
  21.  
  22.  
  23.  
  24. // System includes
  25. #ifndef __MEMORY__
  26.     #include <Memory.h>
  27. #endif
  28.  
  29.  
  30.  
  31.  
  32. // Application includes
  33. #ifndef __PROTOTYPES__
  34.     #include "Prototypes.h"
  35. #endif
  36.  
  37.  
  38.  
  39.  
  40.  
  41. #if !defined(THINK_C) && !defined(__MWERKS__)        // These declares "qd" in their runtime
  42.     QDGlobals    qd;
  43. #endif
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. void main ( void )
  51. {
  52.     
  53.     // Must be called when using the Thread Manager
  54.     MaxApplZone ( );
  55.     
  56.     MoreMasters ( );
  57.     
  58.     InitToolbox ( );                        // Init toolbox stuff
  59.     InitApplication ( );                    // Init application specific stuff
  60.     EventLoop ( );
  61.     
  62.     return;
  63. }
  64.  
  65.  
  66.  
  67.